home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 February / PCWK0297.iso / lotus / english / lotus039.dsk / CONTACTS.MPR / SCRIPT / ApproachDoc / SmartMaster Info / Body / butMore.s (.txt) < prev    next >
Null Bytes Alternating  |  1995-11-12  |  2KB  |  42 lines

  1. '++LotusScript Development Environment:2:5:(Options):0:66
  2.  
  3. '++LotusScript Development Environment:2:5:(Forward):0:1
  4. Declare Sub Click(Source As Button, X As Long, Y As Long, Flags As Long)
  5.  
  6. '++LotusScript Development Environment:2:5:(Declarations):0:2
  7.  
  8. '++LotusScript Development Environment:2:2:BindEvents:1:129
  9. Private Sub BindEvents(Byval Objectname_ As String)
  10.     Static Source As BUTTON
  11.     Set Source = Bind(Objectname_)
  12.     On Event Click From Source Call Click
  13. End Sub
  14.  
  15. '++LotusScript Development Environment:2:2:Click:1:12
  16. Sub Click(Source As Button, X As Long, Y As Long, Flags As Long)
  17.     v=0
  18.     If source.parent.directionspanel.visible=True Then
  19.         v=1
  20.     End If
  21.     
  22.     If source.parent.descriptionpanel.visible=True Then
  23.         v=2
  24.     End If
  25.     
  26.     If v=0 Then
  27.         source.parent.directionspanel.visible=False
  28.         source.parent.structurepanel.visible=False
  29.         source.parent.descriptionpanel.visible=True
  30.     End If
  31.     If v=1 Then
  32.         source.parent.directionspanel.visible=False
  33.         source.parent.structurepanel.visible=True
  34.         source.parent.descriptionpanel.visible=False
  35.     End If
  36.     If v=2 Then
  37.         source.parent.directionspanel.visible=True
  38.         source.parent.structurepanel.visible=False
  39.         source.parent.descriptionpanel.visible=False
  40.     End If
  41.     'v=(v+1) Mod 3
  42. End Sub